<template>
  <el-dialog
    :model-value="dialogTableVisible"
    :title="title"
    :width="width"
    :close-on-click-modal="false"
    @close="closeClick"
  >
    <slot name="center"></slot>
  </el-dialog>
</template>
<script setup>
const emit = defineEmits(['closeIcon']);
const { dialogTableVisible, title, width } = defineProps({
  dialogTableVisible: {
    type: Boolean,
    default: false,
  },
  title: {
    type: String,
    default: '',
  },
  width: {
    type: String,
    default: '800',
  },
});
const closeClick = () => {
  emit('closeIcon');
};
</script>
<style scoped lang="scss"></style>
